package com.aqie.netty.wechat;

import com.aqie.netty.wechat.utils.SpringUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@MapperScan(basePackages = "com.aqie.netty.wechat.mapper")
@ComponentScan(basePackages = {"com.aqie.netty.wechat", "org.n3r.idworker"})
public class WechatApplication {
    @Bean
    public SpringUtil getSpingUtil() {
        return new SpringUtil();
    }
    public static void main(String[] args) {
        SpringApplication.run(WechatApplication.class, args);
    }
}
